const mongoose = require('mongoose')

const schema = new mongoose.Schema({
  name: { type: String },
  gender: { type: String },
  type: { type: String },
  date: { type: String },
  tel: { type: String },
  area: { type: String },
  town: { type: String },
  vill: { type: String },
  group_no: { type: String },
  nation: { type: String },
  id_card: { type: String },
  src:  [{
    name: { type: String },
    url: { type: String },
  }],
  dest: { type: String },
  phone: { type: String }
})

module.exports = mongoose.model('Account', schema)